package com.nami.common.response;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author chengh
 * 系统状态值枚举
 */
@AllArgsConstructor
@Getter
public enum ResponseCodeEnum {

    /**
     * 通用成功
     */
    SUCCESS(200, "success"),

    /**
     * 通用失败
     */
    ERROR(500, "failed"),

    /**
     *  401 未知在用户
     */
    FAILED_401(401, "未知用户"),

    /**
     * 403 权限不足
     */
    FAILED_403(403, "权限不足"),

    /**
     * 405 错误,认证失败
     */
    FAILED_405(405, "认证失败"),

    /**
     * 406  用户被踢出
     */
    FAILED_406(406, "异地登录");

    private final Integer code;

    private final String message;

}
